#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;

int main()
{
	size_t sz;
	vector<int> vec;
	sz = vec.capacity();
	cout << "making vec grow:" << endl;
	for (int i = 0; i < 100; ++i)
	{
		vec.push_back(i);
		if (sz != vec.capacity())
		{
			sz = vec.capacity();
			cout << "capacity changed: " << sz << endl;
		}
	}
}